window.onload = function() {
	if(!document.getElementById || !document.createElement) return false;
	
	let testDiv = document.getElementById("testdiv");
	if(!testDiv) return false;
	let para = document.createElement("p");
	let txt1 = document.createTextNode("This is ");
	let emphasis = document.createElement("em");
	let txt2 = document.createTextNode("my");
	let txt3 = document.createTextNode(" content.");
	para.appendChild(txt1);
	emphasis.appendChild(txt2);
	para.appendChild(emphasis);
	para.appendChild(txt3);
	testDiv.appendChild(para);
}